//
//  XKViewController.m
//  SecurityNote
//
//  Created by joonsheng on 14-8-11.
//  Copyright (c) 2019年 XuKai. All rights reserved.
//

#import "XKViewController.h"

@interface XKViewController ()

@end

@implementation XKViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    //状态栏为白色
    [[UIApplication sharedApplication]setStatusBarStyle:UIStatusBarStyleLightContent];

    [[UIApplication sharedApplication]setStatusBarHidden:NO];
    
    
    //改变系统的导航栏
    UINavigationBar * navBar = [UINavigationBar appearance];
    
    //导航栏背影色
//    [navBar setBarTintColor:MainColor];
    
    [navBar setBarTintColor:MainColor];
    
    //导航栏标题为白色
    [navBar setBarStyle:UIBarStyleBlack];

    //导航栏返回条颜色
    navBar.tintColor = [UIColor whiteColor];
    
    
    //设置BarButtonItem的主题
    UIBarButtonItem * item = [UIBarButtonItem appearance];
    
    NSMutableDictionary * itemAttrys = [NSMutableDictionary dictionary];
    
    itemAttrys[NSForegroundColorAttributeName] = [UIColor whiteColor];
    //itemAttrys [NSFontAttributeName] = [UIFont systemFontOfSize:16];
    
    [item setTitleTextAttributes:itemAttrys forState:UIControlStateNormal];
    
    //tab bar 颜色
    UITabBar * tabBar = [UITabBar appearance];
    tabBar.tintColor = MainColor;
    

}



@end
